	
	/**funciton replaceAll**/
	String.prototype.replaceAll  = function(s1,s2){     
		return this.replace(new RegExp(s1,"gm"),s2);     
	}


	/**function 回车 转成 换行**/
	function replaceEnter2BR(str){
		str = escape(str);
		str=str.replaceAll("%0A",'<br>');
		str = unescape(str);
		return str;
	}

